package com.zueb.stumanage

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.navigation.Navigation
import com.zueb.stumanage.databinding.ActivityMainBinding
import com.zueb.stumanage.util.Preference

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        DataBindingUtil.setContentView<ActivityMainBinding>(this,R.layout.activity_main)
        var status:Boolean by Preference(
            MyAppliaction.context,"Status",false
        )
        if (!status){
            Navigation.findNavController(this,R.id.nav_host_main).navigate(R.id.nav_to_login)
        }
    }
}